package com.s4j.struts.biz.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 重症肌无力-治疗史调查-西药
 * @author Administrator
 *
 */
@Entity
@Table(name="BIZ_MG_TREATHISWM")
public class MgTreathisWm {

	private Long wmId;
	
	private String name;	//治疗药物
	
	private String dosage;	//	服用剂量
	
	private String date;	//	用药时间
	
	private String maxDosage;	//	最大剂量
	
	private String result;	//治疗效果
	
	private BizMgTreathis treathis;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getWmId() {
		return wmId;
	}

	public void setWmId(Long wmId) {
		this.wmId = wmId;
	}

	@Column(length=50, nullable=false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(length=50)
	public String getDosage() {
		return dosage;
	}

	public void setDosage(String dosage) {
		this.dosage = dosage;
	}

	@Column(length=20)
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	@Column(length=50)
	public String getMaxDosage() {
		return maxDosage;
	}

	public void setMaxDosage(String maxDosage) {
		this.maxDosage = maxDosage;
	}

	@Column(length=50)
	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="treathisId")
	public BizMgTreathis getTreathis() {
		return treathis;
	}

	public void setTreathis(BizMgTreathis treathis) {
		this.treathis = treathis;
	}
}
